<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class PermissionsAddtableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        $data = [
            [
                'id' => 83,
                'name' => '交易所管理',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/exchange',
                'level' => 0,
                'icon' => 'layui-icon-dollar',
                'parent_id' => 0,
                'display_menu' => 1,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 84,
                'name' => '交易所列表',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/exchange/index',
                'level' => 1,
                'icon' => 'layui-icon-template',
                'parent_id' => 83,
                'display_menu' => 1,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 85,
                'name' => '查看交易所',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/exchange/show',
                'level' => 2,
                'icon' => 'layui-icon-template',
                'parent_id' => 84,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 86,
                'name' => '创建交易所',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/exchange/create',
                'level' => 2,
                'icon' => '',
                'parent_id' => 84,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ], [
                'id' => 87,
                'name' => '保存交易所',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/exchange/store',
                'level' => 2,
                'icon' => '',
                'parent_id' => 84,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 88,
                'name' => '编辑交易所',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/exchange/edit',
                'level' => 2,
                'icon' => '',
                'parent_id' => 84,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 89,
                'name' => '修改交易所',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/exchange/update',
                'level' => 2,
                'icon' => '',
                'parent_id' => 84,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 90,
                'name' => '删除交易所',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/exchange/destroy',
                'level' => 2,
                'icon' => '',
                'parent_id' => 84,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 91,
                'name' => '品种列表',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/varietie/index',
                'level' => 1,
                'icon' => 'layui-icon-templeate-1',
                'parent_id' => 83,
                'display_menu' => 1,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 92,
                'name' => '查看品种',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/varietie/show',
                'level' => 2,
                'icon' => '',
                'parent_id' => 91,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 93,
                'name' => '创建品种',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/varietie/create',
                'level' => 2,
                'icon' => '',
                'parent_id' => 91,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 94,
                'name' => '保存品种',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/varietie/store',
                'level' => 2,
                'icon' => '',
                'parent_id' => 91,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 95,
                'name' => '编辑品种',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/varietie/edit',
                'level' => 2,
                'icon' => '',
                'parent_id' => 91,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 96,
                'name' => '修改品种',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/varietie/update',
                'level' => 2,
                'icon' => '',
                'parent_id' => 91,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 97,
                'name' => '删除品种',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/varietie/destroy',
                'level' => 2,
                'icon' => '',
                'parent_id' => 91,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 98,
                'name' => '交易数据',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/transaction',
                'level' => 0,
                'icon' => 'layui-icon-table',
                'parent_id' => 0,
                'display_menu' => 1,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 99,
                'name' => '收盘价数据库',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/closing_data/index',
                'level' => 1,
                'icon' => 'layui-icon-tabs',
                'parent_id' => 98,
                'display_menu' => 1,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 100,
                'name' => '查看收盘价数据',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/closing_data/show',
                'level' => 2,
                'icon' => 'layui-icon-tabs',
                'parent_id' => 99,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 101,
                'name' => '创建收盘价数据',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/closing_data/create',
                'level' => 2,
                'icon' => '',
                'parent_id' => 99,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 102,
                'name' => '保存收盘价数据',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/closing_data/store',
                'level' => 2,
                'icon' => '',
                'parent_id' => 99,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 103,
                'name' => '编辑收盘价数据',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/closing_data/edit',
                'level' => 2,
                'icon' => '',
                'parent_id' => 99,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 104,
                'name' => '修改收盘价数据',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/closing_data/update',
                'level' => 2,
                'icon' => '',
                'parent_id' => 99,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 105,
                'name' => '删除收盘价数据',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/closing_data/destroy',
                'level' => 2,
                'icon' => '',
                'parent_id' => 99,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 106,
                'name' => '导入收盘价数据',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/closing_data/import',
                'level' => 2,
                'icon' => '',
                'parent_id' => 99,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 107,
                'name' => '期货监控中心账号',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/transaction_user/index',
                'level' => 2,
                'icon' => 'layui-icon-username',
                'parent_id' => 6,
                'display_menu' => 1,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 108,
                'name' => '查看交易用户',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/transaction_user/show',
                'level' => 3,
                'icon' => '',
                'parent_id' => 107,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 109,
                'name' => '创建交易用户',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/transaction_user/create',
                'level' => 3,
                'icon' => '',
                'parent_id' => 107,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 110,
                'name' => '保存交易用户',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/transaction_user/store',
                'level' => 3,
                'icon' => '',
                'parent_id' => 107,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 111,
                'name' => '编辑交易用户',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/transaction_user/edit',
                'level' => 3,
                'icon' => '',
                'parent_id' => 107,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 112,
                'name' => '修改交易用户',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/transaction_user/update',
                'level' => 3,
                'icon' => '',
                'parent_id' => 107,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 113,
                'name' => '删除交易用户',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/transaction_user/destroy',
                'level' => 3,
                'icon' => '',
                'parent_id' => 107,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 114,
                'name' => '统计分析',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/analysis',
                'level' => 0,
                'icon' => 'layui-icon-chart',
                'parent_id' => 0,
                'display_menu' => 1,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 115,
                'name' => '期分析',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/index/qi',
                'level' => 1,
                'icon' => 'layui-icon-chart',
                'parent_id' => 114,
                'display_menu' => 1,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 116,
                'name' => '收盘价走势',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/index/closing_price',
                'level' => 1,
                'icon' => '',
                'parent_id' => 114,
                'display_menu' => 1,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 117,
                'name' => '买卖平开细分图',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/index/sale_buy',
                'level' => 1,
                'icon' => '',
                'parent_id' => 114,
                'display_menu' => 1,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 118,
                'name' => '消息通知',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/message/index',
                'level' => 1,
                'icon' => 'layui-icon-notice',
                'parent_id' => 2,
                'display_menu' => 1,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 119,
                'name' => '展示消息通知',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/message/detail',
                'level' => 2,
                'icon' => '',
                'parent_id' => 118,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 120,
                'name' => '消息通知标记已读',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/message/markRead',
                'level' => 2,
                'icon' => '',
                'parent_id' => 118,
                'display_menu' => 0,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 121,
                'name' => '期货成交汇总',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/deal_data/index',
                'level' => 1,
                'icon' => 'layui-icon-table',
                'parent_id' => 98,
                'display_menu' => 1,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 122,
                'name' => '期货持仓汇总',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/position_data/index',
                'level' => 1,
                'icon' => 'layui-icon-table',
                'parent_id' => 98,
                'display_menu' => 1,
                'created_at' => '2021-04-29 23:28:07',
            ],
            [
                'id' => 123,
                'name' => '逐日盯市汇总数据',
                'guard_name' => 'admin',
                'sort_order' => 0,
                'url' => '/admin/position_data/index',
                'level' => 1,
                'icon' => 'layui-icon-table',
                'parent_id' => 98,
                'display_menu' => 1,
                'created_at' => '2021-04-29 23:28:07',
            ],
        ];
        DB::table('permissions')->insert($data);
    }
}
